package cn.disignPattern.com.partOne;

public class MallardDuck extends Duck {

    public MallardDuck(){
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    public void display(){
        System.out.println("我是绿头鸭 mallardDuck");
    }


}